package com.zzyd.common.mvp.data;

import androidx.annotation.StringRes;

/**
 * @author wjunjie
 * @version 1.0
 * @E-mail wang_junjie007@163.com
 * @company ZZYD
 * @createTime 2018/7/23 15:06
 * @类注释: 数据源接口
 */
public interface DataSource {

    interface CallBack<T> extends SuccessCallback<T>,FailedCallback{

    }

    interface SuccessCallback<T> {
        void onDataLoaded(T t);
    }

    interface FailedCallback {
        void onDataNotAvailable(@StringRes int str);
    }

}
